package cn.edu.scau.cmi.wuzhenxin.abstractFactory.factory;

import cn.edu.scau.cmi.wuzhenxin.domain.Insure;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "PICC":
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		}
		return null;

	}
	
	public abstract Insure createCarInsure();
	public abstract Insure createPeopleInsure();
	public abstract Insure createDriverInsure();
	public abstract Insure createMulInsure();
}
